package router

import (
	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/net/ghttp"
)

func Init() {
	s := g.Server()

	s.Group("/index", func(group *ghttp.RouterGroup) {
		group.Group("/", func(group *ghttp.RouterGroup) {
			group.ALLMap(g.Map{
				"/helloWorld": func(r *ghttp.Request) {
					r.Response.Write("helloWorld！")
				},
			})
		})
	})
}
